//
//  MovieDetailCollectionViewCell.m
//  UI-13-DouBan--
//
//  Created by lanou3g on 15/9/4.
//  Copyright (c) 2015年 自由科技. All rights reserved.
//

#import "MovieDetailCollectionViewCell.h"

@implementation MovieDetailCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setSubViews];
    }
    return self;
}

- (void)setSubViews{
    
    
    _imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.bounds), CGRectGetHeight(self.bounds))];
    _imgView.backgroundColor = [UIColor whiteColor];
    _imgView.layer.masksToBounds = YES;
    _imgView.layer.cornerRadius = 10;
    [self.contentView addSubview:_imgView];
    
    
    _movieTitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(_imgView.frame), CGRectGetWidth(self.bounds), 30)];
    _movieTitleLabel.textAlignment = NSTextAlignmentCenter;
    _movieTitleLabel.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:_movieTitleLabel];
}







@end
